package com.peiqi.aiproject.controller;
import cn.hutool.http.HttpStatus;
import com.peiqi.aiproject.domain.IdeaToolData;
import com.peiqi.aiproject.domain.Plan;
import com.peiqi.aiproject.domain.SaveData;
import com.peiqi.aiproject.domain.vo.ResponseVO;
import com.peiqi.aiproject.service.UserService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;
import java.util.List;
import static com.peiqi.aiproject.domain.vo.ResponseVO.success;

@RestController
@RequestMapping("/getdata")
public class GetDataController {
    @Resource
    UserService userService;
    @GetMapping()
    public ResponseVO<List<SaveData>> plan(){
        return success(HttpStatus.HTTP_OK, userService.getdata());
    }
}
